package top.jiangqiang.qianyi.data.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.jiangqiang.qianyi.common.base.model.entity.BaseEntity;
import top.jiangqiang.qianyi.data.handler.EncryptionTypeHandler;

import java.io.Serial;

/**
 * <p>
 * 后台用户账号
 * </p>
 *
 * @author JiangQiang
 * @since 2024-07-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "qy_admin_user", autoResultMap = true)
@Schema(name = "AdminUser", description = "$!{table.comment}")
public class AdminUser extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "用户账户")
    @TableField(typeHandler = EncryptionTypeHandler.class)
    private String username;

    @Schema(description = "用户密码")
    private String password;
}
